﻿using System;

namespace CreateStruct
{
    class Program
    {
        class Person
        {
            public enum Gender : int
            {
                Male,
                Female
            };

            public string firstName;
            public string lastName;
            public int age;
            public Gender gender;

            public Person(string fn, string ln, int a, Gender g)
            {
                firstName = fn;
                lastName = ln;
                age = a;
                gender = g;
            }

            public override string ToString()
            {
                return firstName + " " + lastName + " (" + gender.ToString() + ")" + ", age " + age;
            }
        }

        class Manager : Person
        {
            public string phoneNumber;
            public string officeLocation;
            public Manager(string _firstName, string _lastName, int _age, Gender _gender, string _phoneNumber, string _officeLocation) 
                : base(_firstName, _lastName, _age, _gender)
            {
                phoneNumber = _phoneNumber;
                officeLocation = _officeLocation;
            }
            public override string ToString()
            {
                return base.ToString() + ", " + phoneNumber + ", " + officeLocation;
            }
        }

        static void Main(string[] args)
        {
            Person p = new Person("Toni", "Tester", 32, Person.Gender.Male);
            Console.WriteLine(p);

            Manager m = new Manager("Maurene", "Srebber", 31, Person.Gender.Female, "555-12345", "Toronto");
            Console.WriteLine(m);
        }
    }
}
